package vip.xiaonuo.modular.manage.tsdatarecord.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.xiaonuo.modular.manage.tsdatarecord.entity.BaseDataDefine;
import vip.xiaonuo.modular.manage.tsdatarecord.mapper.BaseDataDefineMapper;
import vip.xiaonuo.modular.manage.tsdatarecord.service.BaseDataDefineService;

/**
 * BaseDataDefineServiceImpl
 *
 * @author JackLee
 * 2022/8/25 19:38
 */
@Service
public class BaseDataDefineServiceImpl extends ServiceImpl<BaseDataDefineMapper, BaseDataDefine> implements BaseDataDefineService {

    @Override
    public BaseDataDefine getByRecordId(Long recordId) {
        QueryWrapper<BaseDataDefine> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(BaseDataDefine::getRecordId, recordId);
        return this.getOne(queryWrapper);
    }
}
